# include <iostream>
using namespace std;

int main()
{
    int scores[10];
    scores[0]=99;
    printf("%d\n",scores[0]);
    int ages[5] = {10,12,20,9,8};
    for (int i = 0; i < 5; i++)
    {
        printf("age is: %d\n",ages[i]);
    }
    char arrc[10];

    printf("数组所占内存空间:%d\n",sizeof(ages));
    printf("数组中每个元素所占内存空间:%d\n",sizeof(ages[0]));
    printf("数组首地址: %d\n",(int)ages);
    printf("数组第二个元素地址: %d\n",(int)&ages[1]);
    printf("length of char arr: %d\n",sizeof(arrc)/sizeof(char));

    return 0;
}